﻿using System.Collections;
using System.Collections.Generic;
using System.IO;
using Const;
using Entitas.Unity;
using Services;
using UnityEngine;

public class BgController : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var entity = Contexts.sharedInstance.game.CreateEntity();
        IView audio = gameObject.AddComponent<AudioView>();
        gameObject.Link(entity);
        audio.Link(entity,Contexts.sharedInstance.game);
        entity.ReplaceComponentsAudio(AudioName.Bg.ToString());
      
    }
}
